﻿@model IEnumerable<ICDA.Web.Models.UserModel>
@{
    ViewBag.Title = "UserAccount";
}
<div class="tabscontainer">
    <div class="tabs">
        <div class="tabs">
            <div class="tab selected first" id="tab_menu_1">
                <div class="link">@Html.ActionLink("Users", "UserAccount", "Admin")</div>
                <div class="arrow">
                </div>
            </div>
            @* <div class="tab selected" id="tab_menu_2">
                <div class="link">@Html.ActionLink("Modify User", "Edit User", "Admin")</div>
                <div class="arrow">
                </div>
            </div>*@
            <div class="tab  last" id="tab_menu_3">
                <div class="link">@Html.ActionLink("Add User", "AddUser", "Admin")</div>
                <div class="arrow">
                </div>
            </div>
        </div>
    </div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true, " ...........")
  
        <div class="curvedContainer">
            <div class="tabcontent" id="tab_content_3" style="display: block">
                <table id="table-6" cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <th>
                                Name
                            </th>
                            <th>
                                Team Name
                            </th>
                            <th>
                                Status
                            </th>
                            <th>
                                Email ID
                            </th>
                            <th>
                                Role
                            </th>
                            <th>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        @if (Model != null)
                        {
                            foreach (var item in Model)
                            {
                            <tr>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.TeamName)
                                </td>
                                <td>
                                    @if (item.Status)
                                    { @Html.Raw("Active");
                                    }
                                    else
                                    { @Html.Raw("InActive");
                                    }
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.EmailID)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Role)
                                </td>
                                <td>
                                    @Html.ActionLink("Edit", "EditUser", new { id = item.UserID }) |
                                    @Html.ActionLink("Delete", "DeleteUser", new { id = item.UserID })
                                </td>
                            </tr>
                            }
                        }
                    </tbody>
                </table>
            </div>
        </div>
    }
</div>
